/**
 * Created by Administrator on 2017/6/30 0030.
 */
"use strict";
angular.module('app').controller('YKSensorSubHeaderCtrl', function ($scope,$http) {
    //报警设备 正常设备  所有设备  数目
    $http.get(baseurls+'/device_count').then(function(res){
        // console.log(res.data);
        if (res.data.ret == 1) {
            $scope.d_total = res.data.total;
            $scope.d_error = res.data.warn;
            $scope.d_ok = res.data.ok;
        }
    })
});